package com.supermap.application.dao;

import com.supermap.application.entity.TMicroTablemeta;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


/**
 * 基层对象元数据信息dao
 *
 * @author Created by W.Qiong on 14-3-4.
 */
public interface MicroTablemetaDao extends JpaRepository<TMicroTablemeta, Integer> {

    /**
     * 通过表名查询
     * @param tableName
     * @return
     */
    @Query("select o from TMicroTablemeta o where  o.tableName= :tableName")
    TMicroTablemeta findByTableName(@Param("tableName") String tableName);


}
